/*Copyright (C) 2009 - 2011 MASSART GAUTHIER

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "../headers.h"

#define TAILLE_MAX 1000

void pom_menu(void) {
	short choix_menu = 0;
	char *contenu_menu = "Partie normale\nPartie normale 2 joueurs\nPartie coups limités\nMode aventure\nManuel\nVoir les scores\nRevenir au menu principal\n", *contenu_titre = "MENU DU PLUS OU MOINS";
	clear();

	while(choix_menu < 7) {
		choix_menu = afficher_menu_jeu(contenu_menu, contenu_titre);

		if(choix_menu == 1) {
			pom_jeu(1);
		}
		else if(choix_menu == 2) {
			pom_partie_normale_2();
		}
		else if(choix_menu == 3) {
			pom_jeu(2);
		}
		else if(choix_menu == 4) {
			pom_jeu(3);
		}
		else if(choix_menu == 5) {
			pom_man();
		}
		else if(choix_menu == 6) {
			clear();
			afficher_titre("SCORES DU PLUS OU MOINS");
			CSLP_ColorText(COLOR_WHITE);
			afficher_centre("PARTIE NORMALE");
			CSLP_ColorText(COLOR_WHITE);
			lire_suppr_score("PlusOuMoinsPN", true);
			addstr("\n\n");
			afficher_centre("PARTIE A COUPS LIMITES");
			CSLP_ColorText(COLOR_WHITE);
			lire_suppr_score("PlusOuMoinsPAC", true);
			addstr("\n\n");
			CSLP_ColorText(COLOR_WHITE);
			afficher_centre("MODE AVENTURE");
			CSLP_ColorText(COLOR_WHITE);
			lire_suppr_score("PlusOuMoinsMA", true);
			getch();
			clear();
		}
		else if(choix_menu == 7) {
			clear();
		}
	} /*fin de while (choix_menu < 6)*/
}
